package main

import (
	"path/filepath"
	"server/plugin/mall/model"

	"gorm.io/gen"
)

func main() {
	g := gen.NewGenerator(gen.Config{OutPath: filepath.Join("..", "..", "..", "mall", "blender", "model", "dao"), Mode: gen.WithoutContext | gen.WithDefaultQuery | gen.WithQueryInterface})
	g.ApplyBasic(new(model.A轮播), new(model.A规格设置), new(model.A价格表), new(model.A类别设置), new(model.A商品), new(model.A商品sku), new(model.A订单), //go:generate go mod tidy
		//go:generate go mod download
		//go:generate go run gen.go

		new(model.A商品1),
	)
	g.Execute()
}
